package com.dave.gd.core.rule.exception;

import com.dave.gd.core.base.entity.impl.AbstractBaseEntity;
import com.dave.gd.core.rule.RuleResult;

public class RuleRuntimeException extends RuntimeException {
    
    private AbstractBaseEntity source;
    private RuleResult         ruleResult;
    
    public RuleRuntimeException(String msg, AbstractBaseEntity source, RuleResult ruleResult) {
        
        super(msg);
        
        this.source = source;
        this.ruleResult = ruleResult;
    }
    
    public AbstractBaseEntity getSource() {
        return source;
    }
    
    public void setSource(AbstractBaseEntity source) {
        this.source = source;
    }
    
    public RuleResult getRuleResult() {
        return ruleResult;
    }
    
    public void setRuleResult(RuleResult ruleResult) {
        this.ruleResult = ruleResult;
    }
}
